import Vue from 'vue'
import Router from 'vue-router'
import HospitalSearch from '../components/HospitalSearch.vue'
import SubjectSearch from '../components/SubjectSearch.vue'
import DoctorSearch from '../components/DoctorSearch.vue'
import HospitalDetail from '../components/HospitalDetail.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HospitalSearch',
      component: HospitalSearch
    },
    {
      path: '/hospital',
      name: 'HospitalSearch',
      component: HospitalSearch
    },
    {
      path: '/doctorSearch',
      name: 'DoctorSearch',
      component: DoctorSearch
    },
    {
      path: '/subject/:id',
      name: 'SubjectSearch',
      component: SubjectSearch
    },
    {
      path: '/hospitailDetail/:id',
      name: 'HospitailDetail',
      component: HospitalDetail
    },
  ]
})


